package com.mz.mattress.client.service;

import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Card;

import java.util.List;

public interface CardService {

    /**
     * 当前商家 发放的卡项
     * @param memberId
     * @return
     */
    Result<List<Card>> list(Long memberId);

    Result<Card> getById(Integer id);

    /**
     * 发放卡项
     * @param memberId
     * @return
     */
    Result sendCard(Long memberId, String orderId);

}
